sap.ui.define([
	"sap/ui/core/mvc/Controller",
	"sap/ui/model/json/JSONModel",
], function (Controller, JSONModel) {
	"use strict";

	return Controller.extend("autofiror.reuse.routepatterns.controller.Show", {
		goPattern2() {
			const oRouter = this.getOwnerComponent().getRouter();

			oRouter.navTo("pattern2", {
				"MandatoryProductId": "5",
                "restAsString*": "Detail"
			});

			// oRouter.parse("Product/5/Detail");
		},

		goNav(name, par) {
			const oRouter = this.getOwnerComponent().getRouter();
			oRouter.navTo(name, par);
		},

		goParse(val1) {
			const oRouter = this.getOwnerComponent().getRouter();
			oRouter.parse(val1);
		}
	});
});